Skip to content

fix(mongos): bubble up close events after the first one - #1713

Merged
mbroadst merged 1 commit into
mongodb:3.0from
vkarpov15:fix-mongoose-6249
May 31, 2018
Merged

fix(mongos): bubble up close events after the first one#1713
mbroadst merged 1 commit into
mongodb:3.0from
vkarpov15:fix-mongoose-6249

Conversation

@vkarpov15

Copy link
Copy Markdown
Contributor

Fix Automattic/mongoose#6249

In addition to the changes in #1685, I put together a test that fails when mongos.js is unchanged. Should make it clear why this change is necessary.

As far as mongoose is concerned, the 'close' event is what matters, so I'd be open to leaving the 'timeout' and 'error' events as once() if that helps address any concerns.

@mbroadst
mbroadst merged commit 597931f into mongodb:3.0 May 31, 2018
@mbroadst

Copy link
Copy Markdown
Member

thanks val!

@vkarpov15

Copy link
Copy Markdown
Contributor Author

Thanks Matt! Any ETA on 3.0.9?

@mbroadst

Copy link
Copy Markdown
Member

Just need to finish review on some current changes, and we can publish it by tomorrow at latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants